package com.example.stock.ui.query;


import com.example.stock.BR;
import com.example.stock.R;
import com.example.stock.base.BaseRecyclerViewAdapter;
import com.example.stock.base.CommonViewHolder;

import java.util.ArrayList;

public class FormTitleAdapter extends BaseRecyclerViewAdapter<String> {

    int indexType;
    public FormTitleAdapter(int indexType){
        mData = new ArrayList<>();
        mData.add("()");
        this.indexType = indexType;
    }

    @Override
    protected int layoutId(int viewType) {
        return R.layout.item_form_title2;
    }

    @Override
    protected int variableId() {
        return BR.itemBean;
    }

    @Override
    protected void convert(CommonViewHolder<String> holder, String entity, int position) {
        holder.setBinding(BR.indexType, indexType);
        super.convert(holder, entity, position);
    }
}
